package com.power.sifa.info.api;

import com.plf.common.domain.ResponseDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.power.sifa.info.model.Law_provision;
import com.power.sifa.info.model.pageInfo.Law_provisionPageInfo;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  法律条文 Feign
 */
public interface ILaw_provisionFeign {

    /**
     * 法律条文分页列表
     */
    @PostMapping("/law_provision/list")
    ResponseDTO list(@RequestBody Law_provisionPageInfo law_provisionPageInfo);

    /**
    * 查看法律条文
    */
    @GetMapping("/law_provision/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除法律条文
    */
    @PostMapping("/law_provision/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看法律条文 复合主键使用
    // */
    //@PostMapping("/law_provision/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Law_provision.Law_provisionPK pk);

    /**
     * 修改或保存法律条文
     */
    @PostMapping("/law_provision/save")
    ResponseDTO save(@RequestBody Law_provision  law_provision);

    ///**
    // * 删除法律条文 复合主键使用
    // */
    //@PostMapping("/law_provision/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Law_provision.Law_provisionPK pk);
    
    /**
     * 批量删除法律条文
     */
    @PostMapping("/law_provision/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);
    
     /**
     * 导出excel
     */
    @PostMapping("/law_provision/output")
    void output(HttpServletResponse response, @RequestBody Law_provisionPageInfo law_provisionPageInfo);
        
     /**
     * 导出excel模板
     */
    @PostMapping("/law_provision/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);
    
     /**
     *	导入excel
     */
    @PostMapping("/law_provision/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;



    /**
     * 获取对应的法律法规的详情的法律条文
     * @param docid 法律法规id
     * @return
     */
    @PostMapping("/law_provision/getLawItemDetail")
    ResponseDTO getLawItemDetail(@RequestParam("docid") String docid , @RequestParam(required = false) String keyword);



    
}
